package com.juzipi.demo.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component // 声明此类是 spring 管理类
@ConfigurationProperties(prefix = "personinfo") // 把同类配置信息自动封装成一个实体类，prefix代表前缀
@Data
public class GetPersonInfoProperties {

    private String name;
    private int age;


}
